package org.example.fronted.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.User;

import java.math.BigDecimal;
import java.util.List;


@Mapper
public interface UserMapper2 {

    List<User> selectAllUser();

    User selectUserByNameAndPass(@Param("username") String uName, @Param("password") String uPassword);

    BigDecimal getBalanceOfUser(@Param("userId") Integer userId);

    Integer updateBalanceOfUser(@Param("remainBalance") BigDecimal remainBalance,
                                @Param("userId") Integer userId);
}
